package com.ww.springboot.es.controller;

import com.ww.springboot.es.app.arthas.svc.IArthasSvc;
import lombok.AllArgsConstructor;
import org.springframework.web.bind.annotation.*;

/**
 * 描述：
 *
 * @author 🧑 ‍wanwei
 * @since 2025-08-30 09:14
 */
@RestController
@AllArgsConstructor
@RequestMapping("/arthas")
public class ArthasController {

    private final IArthasSvc iArthasSvc;

    @GetMapping("/test")
    public String test() throws InterruptedException {
        iArthasSvc.test();
        return "hello world";
    }

    @PostMapping("/test2")
    public String test2(@RequestBody Object o) throws InterruptedException {
        iArthasSvc.test2(o);
        return "hello world";
    }

    @PostMapping("/test3")
    public String test3(@RequestBody Object o) throws InterruptedException {
        iArthasSvc.test3(o);
        return "hello world";
    }

}
